package com.cloudm.technician.data.model;

import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;

/**
 * 作者: wesley
 * 时间: 2018/1/8
 * 描述: 图片的实体类
 */
public class ImageInfo extends RealmObject {

    @PrimaryKey
    private long id;
    private int flag;
    private String url;
    private String value;

    private int tag; //0 盒子照片 1：液位照片
    private int userId; //用户登录id
    private int deviceId;

    private double percent; //上传进度

    public ImageInfo() {

    }

    public ImageInfo(int flag, String url, String value) {
        this.flag = flag;
        this.url = url;
        this.value = value;
    }

    public ImageInfo(long id, int flag, String url, String value, int tag, int userId,
                     int deviceId) {
        this.id = id;
        this.flag = flag;
        this.url = url;
        this.value = value;
        this.tag = tag;
        this.userId = userId;
        this.deviceId = deviceId;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public int getTag() {
        return tag;
    }

    public void setTag(int tag) {
        this.tag = tag;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getUserId() {
        return userId;
    }

    public void setDeviceId(int deviceId) {
        this.deviceId = deviceId;
    }

    public int getDeviceId() {
        return deviceId;
    }

    public void setPercent(double percent) {
        this.percent = percent;
    }

    public double getPercent() {
        return percent;
    }
}
